import App from './App'
import utils from "@/utils";
// #ifndef VUE3
console.log('VUE2');
import Vue from 'vue'
Vue.prototype.$util = utils;
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.use(utils)
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
console.log('VUE3');
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.config.globalProperties.$util = utils.install(app);
  // app.config.globalProperties.utils = utils
  return {
    app
  }
}
// #endif